<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en"
      xmlns:tal="http://xml.zope.org/namespaces/tal"
      xmlns:metal="http://xml.zope.org/namespaces/metal"
      xmlns:i18n="http://xml.zope.org/namespaces/i18n"
      lang="en"
      metal:use-macro="here/main_template/macros/master"
      i18n:domain="plone">


    <body>    
    <metal:portlets define-slot="portlets_one_slot">
        <div class="leftobjects">
            <tal:block replace="structure provider:plone.leftcolumn" />
        </div>
    </metal:portlets>
    <div metal:fill-slot="main">
        <metal:main-macro define-macro="main"
                          tal:define="templateId template/getId">
            <div class="body">
                <div class="centerpanel">
                    <div id="hightabs" tal:define="tabs view/get_tabs">
                        <ul class="tabs">
                            <tal:block repeat="tab tabs">                                                        
                            <li tal:define="zindex python:int(tab['index'])*(-1)+5" tal:attributes="style string:z-index:${zindex}">
                                <a href="#" tal:content="tab/tab" tal:attributes="href string:#tabs-${tab/index}" >Noticias</a>
                            </li>
                            </tal:block>
                        </ul>
                        <div class="othercontainer">
                            <div class="contenttab">
                                <tal:block tal:repeat="tab tabs">
                                    <div tal:define="n tab/index;
                                         typedata tab/type" id="tabs-1" tal:attributes="id string:tabs-${n}">
                                        <div tal:repeat="item python:view.get_folder_tabs(typedata,5)">
                                            <h2 class="tileHeadline">
                                                <a href="#"
                                                   class="summary url"
                                                   tal:attributes="href string:${item/getURL|item/absolute_url}/view">
                                                    <!--<img tal:condition="item/getIcon" tal:attributes="src item/getIcon"/>-->
                                                    <span tal:replace="item/pretty_title_or_id">
                                                        Title
                                                    </span>
                                                </a>

                                            </h2>
                                            <div tal:define="obj item/getObject">
                                                <a href="#" tal:attributes="href item/getURL">
                                                    <img tal:condition="exists: obj/image_tile"
                                                         src="#" tal:replace="structure python:
                                                         path('nocall:obj/tag')(scale='tile', css_class='frontimage')"/>
                                                </a>
                                            </div>
                                            <p class="tileBody" tal:condition="item/Description" >
                                                <span tal:omit-tag="" tal:condition="not:item/Description">
                                                    &nbsp;
                                                </span>
                                                <span class="description" tal:define="short_desc python:item.Description[:180]" tal:content="string:${short_desc}">
                                                    description
                                                </span>
                                            </p>
                                            <tal:forum tal:condition="python: (n==3)" tal:define="objs item/getObject" >
                                                <a class="ItemDetails"
                                                   tal:define="obj objs/getForum"
                                                   tal:attributes="href obj/absolute_url"
                                                   tal:content="obj/title_or_id">
                                                    Some forum
                                                </a>
                                                <br />
                                                <a class="title"
                                                   tal:attributes="href string:${context/portal_url}/ploneboard_recent"
                                                   i18n:translate="box_more_recent_conversations">
                                                    More&hellip;
                                                </a>
                                            </tal:forum>

                                            <div class="visualClear"><!-- --></div>
                                        </div>

                                    </div>
                                </tal:block>
                            </div>
                        </div>
                        <!--
                        <p class="tileFooter">
                                    <a href=""
                                       tal:attributes="href string:${item/getURL|item/absolute_url}/view"
                                       i18n:translate="read_more">
                                        Read More&hellip;
                                    </a>
                                </p>
                        <ul>
                            <tal:block tal:define="news python:view.get_folder_tabs('news')">
                            <li tal:repeat="foldy news">
                                <a href="URL" tal:attributes="href foldy/absolute_url"
                                        tal:content="foldy/title_or_id">TITLE OR ID</a>
                            </li>
                            </tal:block>
                        </ul>
                        -->

                    </div>

                    <div class="infoes">
                        <div class="infoleft"><h1>Lo que hacemos</h1><br />
                            <div tal:repeat="item python:view.get_folder_category('News Item','lo_que_hacemos',2)">
                                <h2 class="tileHeadline">
                                    <a href="#"
                                       class="summary url"
                                       tal:attributes="href string:${item/getURL|item/absolute_url}/view"
                                       tal:content="item/pretty_title_or_id">
                                        Item Title
                                    </a>

                                </h2>
                                <div tal:define="obj item/getObject">
                                    <a href="#" tal:attributes="href item/getURL">
                                        <img tal:condition="exists: obj/image_tile"
                                             src="#" tal:replace="structure python:
                                             path('nocall:obj/tag')(scale='tile', css_class='tileImage')"/>
                                    </a>
                                </div>
                                <p class="tileBody">
                                    <span tal:omit-tag="" tal:condition="not:item/Description">
                                        &nbsp;
                                    </span>
                                    <span class="description" tal:define="short_desc python:item.Description[:180]" tal:content="string:${short_desc}...">
                                        description
                                    </span>
                                </p>

                                <p class="tileFooter">
                                    <a href=""
                                       tal:attributes="href string:${item/getURL|item/absolute_url}/view"
                                       i18n:translate="read_more">
                                        Read More&hellip;
                                    </a>
                                </p>

                                <div class="visualClear"><!-- --></div>
                            </div>
                        </div>
                        <div class="inforight"><h1>Lo que viene</h1><br />
                            <div tal:repeat="item python:view.get_folder_tabs('Event',2)" tal:define="item_start item_colection/start/ISO|item/StartDate|nothing;
                                 item_end item_colection/end/ISO|item/EndDate|nothing;">
                                <h2 class="tileHeadline">
                                    <a href="#"
                                       class="summary url"
                                       tal:attributes="href string:${item/getURL|item/absolute_url}/view"
                                       tal:content="item/pretty_title_or_id">
                                        Item Title
                                    </a>

                                </h2>
                                <div tal:define="obj item/getObject">
                                    <a href="#" tal:attributes="href item/getURL">
                                        <img tal:condition="exists: obj/image_tile"
                                             src="#" tal:replace="structure python:
                                             path('nocall:obj/tag')(scale='tile', css_class='tileImage')" />
                                    </a>
                                </div>
                                <span tal:condition="python: item.location" i18n:translate="label_event_byline" class="ubicacion">
                                    (<span tal:content="string:${item/location}" class="location" i18n:name="location">Oslo</span>, from
                                    <abbr class="dtstart"
                                          tal:attributes="title python:item_start"
                                          tal:content="python:toLocalizedTime(item_start,long_format=1)"
                                          i18n:name="start">from date</abbr> to
                                    <abbr class="dtend"
                                          tal:attributes="title python:item_end"
                                          tal:content="python:toLocalizedTime(item_end,long_format=1)"
                                          i18n:name="end">to date</abbr>)
                                </span>
                                <span tal:condition="python: not item.location"
                                      i18n:translate="label_event_byline_without_location" class="ubicacion">
                                    (from
                                    <abbr class="dtstart"
                                          tal:attributes="title python:item_start"
                                          tal:content="python:toLocalizedTime(item_start,long_format=1)"
                                          i18n:name="start">from date</abbr> to
                                    <abbr class="dtend"
                                          tal:attributes="title python:item_end"
                                          tal:content="python:toLocalizedTime(item_end,long_format=1)"
                                          i18n:name="end">to date</abbr>)
                                </span>
                                <p class="tileBody">
                                    <span tal:omit-tag="" tal:condition="not:item/Description">
                                        &nbsp;
                                    </span>
                                    <span class="description" tal:define="short_desc python:item.Description[:180]" tal:content="string:${short_desc}...">
                                        description
                                    </span>
                                </p>

                                <p class="tileFooter">
                                    <a href=""
                                       tal:attributes="href string:${item/getURL|item/absolute_url}/view"
                                       i18n:translate="read_more">
                                        Read More&hellip;
                                    </a>
                                </p>

                                <div class="visualClear"><!-- --></div>
                            </div>
                        </div>
                    </div>
                </div>
                <div class="clear"></div>
                <div class="highlink">
                    <a href="#suscribete" tal:attributes="href string:${portal_url}/news/aggregator/RSS" target="_blank"><span id="suscribete">Y mantente informado con todas las actualizacion que recibas de nuestro portal...</span></a>
                    <a href="#contact-info" tal:attributes="href string:${portal_url}/contact-info"><span id="contactenos">Si necesitas más información o si quieres conocer donde estan nuestras instalaciones...</span></a>
                    <a href="#blog " tal:attributes="href string:${portal_url}/servicios/blog"><span id="blog">Comenta y disfruta de las novedades que tenemos para ti!</span></a>
                    <div class="clear"></div>
                </div>
            </div>
        </metal:main-macro>
    </div>
    <metal:column_two fill-slot="column_two_slot" />
</body>
</html>

